/*
 * @Author: 孙文豪
 * @Description: 
 * @Date: 2024-03-20 14:50:37
 * @LastEditTime: 2024-06-24 15:30:20
 * @LastEditors: 孙文豪
 */
export const tableConfig = [
    {
        name: '日期',
        field: 'salesDateStr',
        width: '100px'
    },
    {
        name: '时间',
        field: 'salesTimeStr',
        width: '100px'
    },
    {
        name: '客户',
        field: 'customerName',
        share: 1
    },
    {
        name: '应收金额',
        field: 'totalAmount',
        share: 1
    },
    // {
    //     name: '应得利润',
    //     field: 'totalProfit',
    //     share: 1
    // },
    {
        name: '实收金额',
        field: 'actualAmount',
        share: 1
    },
    // {
    //     name: '实际利润',
    //     field: 'actualProfit',
    //     share: 1
    // },
    {
        name: '订单收益',
        field: 'actualAmountChangeNum',
        share: 1
    },
    {
        name: '账单状态',
        field: 'billingStatusText',
        share: 1
    },
    {
        name: '清单明细',
        field: 'listDetails',
        share: 3
    },
    {
        name: '操作',
        field: 'operate',
        width: '180px'
    },

]

export const operateList = [
    {
        name: '编辑',
        code: 'edit',
        share: 2
    },
    {
        name: '删除',
        code: 'delete',
        share: 2
    },
    {
        name: '详细',
        code: 'details',
        share: 2
    },
]
//名称，单位，数量，单价，金额，备注
export const salesListConfig = [
    {
        name: '序号',
        code: 'index',
        share: 1
    },
    {
        name: '名称及型号',
        code: 'commodityNameId',
        share: 4
    },
    {
        name: '数量',
        code: 'num',
        share: 2
    },
    {
        name: '单价',
        code: 'price',
        share: 2
    },
    {
        name: '总额',
        code: 'amount',
        share: 2
    },
    {
        name: '备注',
        code: 'remark',
        share: 3
    },
    {
        name: '库存',
        code: 'inventory',
        share: 1
    },
    {
        name: '操作',
        code: 'operation',
        share: 2
    },

]